﻿using System;

namespace Ayatta.Contract.Domain
{
    /// <summary>
    /// 幻灯片
    /// </summary>
    public class Slide : IEntity<int>
    {
        /// <summary>
        /// Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 分类Id
        /// </summary>
        public int CategoryId { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string Link { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string Image { get; set; }
        /// <summary>
        /// 缩略图地址
        /// </summary>
        public string Thumb { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 优先级 从大到小
        /// </summary>
        public int Priority { get; set; }
        /// <summary>
        /// 条件 0为无条件显示 1为需要登录后显示
        /// </summary>
        public int Condition { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 扩展信息
        /// </summary>
        public string Extra { get; set; }
        /// <summary>
        /// 状态 1为可用 0为不可用
        /// </summary>
        public bool Status { get; set; }

        public virtual SlideCategory Category { get; set; }
    }
}